// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import echarts from 'echarts' //引入echarts
import YDUI from 'vue-ydui'; /* 相当于import YDUI from 'vue-ydui/ydui.rem.js' */
import 'vue-ydui/dist/ydui.rem.css';
/* 使用px：import 'vue-ydui/dist/ydui.px.css'; */
import BaiduMap from 'vue-baidu-map'

Vue.use(BaiduMap, {
  ak: 'ZUONbpqGBsYGXNIYHicvbAbM'
});

Vue.use(YDUI);

import './style/common.css'

Vue.config.productionTip = false

Vue.use(ElementUI);
Vue.prototype.$echarts = echarts //引入组件
axios.defaults.baseURL = BASE_URL;
axios.defaults.withCredentials = true ;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
